package com.ccrfid.rmc6.repository.sys;

import com.ccrfid.rmc6.entity.sys.UploadFileEntity;
import com.ccrfid.rmc6.repository.search.SearchableRepository;
import org.springframework.data.repository.Repository;

public interface UploadFileRepository extends Repository<UploadFileEntity, Long>, SearchableRepository<UploadFileEntity> {

    UploadFileEntity getById(Long id);

    UploadFileEntity getFirstByFileName(String fileName);

    UploadFileEntity save(UploadFileEntity entity);

    void deleteAllByFileName(String fileName);

    void deleteById(Long id);
}
